//
// Created by xili on 2024/8/17 9:01.
// GO BIG OR GO HOME.
//
#include "leetcode.h"

class Solution {
public:
    int maximum69Number(int num) {
        string s = to_string(num);
        int n = s.size();
        for (auto &item: s) {
            if (item == '6') {
                item = '9';
                break;
            }
        }
        return stoi(s);
    }
};